package com.bw.shopping.mvvm.model;

import com.bw.mvvm_common.entity.BaseEntity;
import com.bw.mvvm_common.mvvm.model.BaseModel;
import com.bw.mvvm_common.mvvm.network.HttpEnum;
import com.bw.mvvm_common.mvvm.network.HttpFactory;

import java.util.HashMap;

import io.reactivex.Observable;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/20 0020 上午 10:47
 *
 */
class ShopModel extends BaseModel {
    public Observable<BaseEntity> requestShopcar(HashMap<String,Object> map){
        return changeFunc(HttpFactory.create(HttpEnum.TokenSign).getRetrofit()
        .create(Api.class).requestShopcar(createBoday(map)));
    }
    public Observable<BaseEntity> requestadd(HashMap<String,Object> map){
        return changeFunc(HttpFactory.create(HttpEnum.TokenSign).getRetrofit()
        .create(Api.class).requestGoodcart(createBoday(map)));
    }
    public Observable<BaseEntity> requestSubmitCar(HashMap<String,Object> map){
        return changeFunc(HttpFactory.create(HttpEnum.TokenSign).getRetrofit()
        .create(Api.class).requestSubmitCar(createBoday(map)));
    }
}
